package com.wnxy.eleba.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/index")
    public String toIndex(ModelAndView mv){
        mv.addObject("user",123 );
        return "user/index";
    }
}
